﻿using Autofac;

namespace MiP.XmlCmd.IoC
{
    public static class RootContainer
    {
        private static readonly IContainer _container = CreateRootContainer();

        public static IContainer Instance
        {
            get
            {
                return _container;
            }
        }

        private static IContainer CreateRootContainer()
        {
            IContainerConfiguration configuration = new ContainerConfiguration();
            return configuration.Configure();
        }
    }
}